Re: Finding records that are not there

Поиск
Список
Период
Сортировка
От Owen Hartnett
Тема Re: Finding records that are not there
Дата
Msg-id p06240803c45b54e3fcc2@[192.168.0.100]
обсуждение исходный текст
Ответ на Re: Finding records that are not there  (hubert depesz lubaczewski <depesz@depesz.com>)
Список pgsql-general
At 6:47 PM +0200 5/22/08, hubert depesz lubaczewski wrote:
>On Thu, May 22, 2008 at 12:21:35PM -0400, Owen Hartnett wrote:
>>  The SQL I've tried is:
>>  select commcost.maplot, commcost.unitno from commcost
>>  where not exists(select 1 from commcost, bldg
>>  where commcost.maplot = bldg.maplot and
>>  commcost.unitno = bldg.unitno)
>>  order by commcost.maplot
>
>change it to:
>
>>  select commcost.maplot, commcost.unitno from commcost
>>  where not exists(select 1 from bldg
>>  where commcost.maplot = bldg.maplot and
>>  commcost.unitno = bldg.unitno)
>>  order by commcost.maplot
>
>or simply write:
>
>select * from commcost except select * from bldg;
>
>depesz

Thank you very much for your quick response!

-Owen

В списке pgsql-general по дате отправления:

Предыдущее
От: hubert depesz lubaczewski
Дата:
Сообщение: Re: Finding records that are not there
Следующее
От: "Adam Rich"
Дата:
Сообщение: Re: Finding records that are not there